<%@ page import="java.util.HashMap" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>


<%--
  Created by IntelliJ IDEA.
  User: 凉城
  Date: 2021/12/20
  Time: 14:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<c:set scope="request" var="score" value="90"/>
${requestScope.score}
<c:choose>
    <c:when test="${requestScope.score>=90&&requestScope.score<=100}">A</c:when>
    <c:when test="${requestScope.score>=80&&requestScope.score<90}">B</c:when>
    <c:when test="${requestScope.score>=70&&requestScope.score<80}">C</c:when>
    <c:when test="${requestScope.score>=60&&requestScope.score<70}">E</c:when>
    <c:otherwise>不及格</c:otherwise>
</c:choose>

<%
    Object[] objects = new Object[]{'a','b','c','d'};
    HashMap<Object, Object> map = new HashMap<>();
    map.put(1, 1);
    map.put(2, 1);
    map.put(3, 1);
    map.put(4, 1);
    request.setAttribute("map", map);
    request.setAttribute("objects", objects);
%>
<br>
<c:forEach var="i" items="${requestScope.map}">
    <tr>
        <td>
            key值：${i.key}<br>
        </td>
        <td>
            value值：${i.value}<br>
        </td>
    </tr>
</c:forEach>
<c:forEach var="i" items="${requestScope.objects}">
        <td>
            objects：${i}<br>
        </td>
</c:forEach>
</body>
</html>
